const GITHUB_OAUTH_URL = 'https://github.com/login/oauth/authorize'
const SCOPE = 'user'
const client_id = 'Iv1.5dcb07098bfd3270'

module.exports = {
  github: {
    userInfoUrl: 'https://api.github.com/user',
    request_token_url: 'https://github.com/login/oauth/access_token',
    client_secret: 'b078c13a6a6a83344303445d7852a8eef85d848a',
    apiBaseUrl: 'https://api.github.com',
    client_id
  },
  GITHUB_OAUTH_URL,
  OAUTH_URL: `${GITHUB_OAUTH_URL}?client_id=${client_id}&scope=${SCOPE}`,
  searchLanguages: [
    'Javascript',
    'HTML',
    'CSS',
    'TypeScript',
    'Python',
    'Java',
    'PHP'
  ],
  searchSortTypes: [
    {
      name: 'Best Match'
    },
    {
      name: 'Most Stars',
      value: 'stars',
      order: 'desc'
    },
    {
      name: 'Fewest Stars',
      value: 'stars',
      order: 'asc'
    },
    {
      name: 'Most Forks',
      value: 'forks',
      order: 'desc'
    },
    {
      name: 'Fewest Forks',
      value: 'forks',
      order: 'asc'
    },
  ]
}